<template>
  <div class="navbar">
    <div class="navbar_left">
      <slot name="left"></slot>
    </div>
    <div class="navbar_middle">
      <slot name="middle"></slot>
    </div>
    <div class="navbar_right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  // 组件名称
  name: "navbar", // 组件参数 接收来自父组件的数据
  props: {}, // 局部注册的组件
  components: {}, // 组件状态值
  data() {
    return {};
  },
};
</script>
<style scoped>
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  width: 100%;
  display: flex;
  height: 44px;
  line-height: 44px;
  text-align: center;
  box-shadow: 0 -2px 2px 4px rgba(0, 0, 0, 0.2);
}
.navbar_left {
  width: 60px;
}
.navbar_middle {
  flex: 1;
}
.navbar_right {
  width: 60px;
}
</style>